
void EEPROM_write(uchar addr, dat) {
	IIC_start();	
	IIC_send_byte(0xA0);  //Ñ¡ÔñAT24C02Ð¾Æ¬£¬Ñ¡ÔñÐ´Ä£Ê½
	IIC_wait_ack(); 
	
	IIC_send_byte(addr);  //Ñ¡ÔñÄÚ´æµØÖ·
	IIC_wait_ack(); 
	
	IIC_send_byte(dat);  //Ð´ÈëÊý¾Ý
	IIC_wait_ack(); 
	IIC_delay(200);
	
	IIC_stop();
}